const env = require('./env')
// console.log(env,env.env =='dev');

const UPLOAD_PATH = env.env ==='dev' ? 'E:/nginx-1.18.0/uploads/admin-upload-ebook' : "/root"
const UPLOAD_URL = env.env ==='dev' ? 'https://book.yueying.cool/admin-upload-ebook' : "/root"
const OLD_UPLOAD_URL = env.env ==='dev' ? 'https://book.youbaobao.xyz/book/res/img' : "https://book.youbaobao.xyz/book/res/img"

module.exports = {
  CODE_ERROR: -1,
  CODE_SUCCESS: 0,
  CODE_TOKEN_EXPIRED: -2,
  debug: true,
  PWT_SALT: 'admin_imooc_node',
  PRIVATE_KEY: 'admin_imooc_node_test_youbaobao_xyz',
  JWT_EXPIRED: 60 * 60, // token失效时间
  UPLOAD_PATH,
  MIME_TYPE_EPUB: 'application/epub+zip',
  UPLOAD_URL,
  OLD_UPLOAD_URL
}